<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${lessonContent.id}"  type="hidden">
							<!-- <div class="form-group">	
								<label class="col-sm-3 control-label">分类id：</label>
								<div class="col-sm-8">
									<input id="classId" name="classId" th:value="${lessonContent.classId}" class="form-control" type="text">
								</div>
							</div> -->
							<div class="form-group">
								<label class="col-sm-3 control-label">选择分类：</label>
								<div class="col-sm-8">
									<select data-placeholder="--选择分类--" name="classId" id="classId"
											class="form-control chosen-select" tabindex="2">
										<option value="">-- 选择分类 --</option>
										<option th:each="tList : ${lessonClassList}"  th:value="${tList.id}"  th:selected="${tList.id}==${lessonContent.classId}?selected:no"> <span th:text="${tList.name}" ></span></option>
									</select>
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">关联商品：</label>
								<div class="col-sm-8">
									<select data-placeholder="--选择商品--" name="goodsId" id="goodsId"
											class="form-control chosen-select" tabindex="2">
										<option value="">-- 选择商品--</option>
										<option th:each="tList : ${goodsList}"  th:value="${tList.id}"  th:selected="${tList.id}==${lessonContent.goodsId}?selected:no"> <span th:text="${tList.name}" ></span></option>
									</select>
								</div>
							</div>
														<!-- <div class="form-group">	
								<label class="col-sm-3 control-label">商品id：</label>
								<div class="col-sm-8">
									<input id="goodsId" name="goodsId" th:value="${lessonContent.goodsId}" class="form-control" type="text">
								</div>
							</div> -->
														<div class="form-group">	
								<label class="col-sm-3 control-label">文章名字：</label>
								<div class="col-sm-8">
									<input id="name" name="name" th:value="${lessonContent.name}" class="form-control" type="text" maxlength="50" placeholder="最多50个字">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">简介：</label>
								<div class="col-sm-8">
									<input id="intro" name="intro" th:value="${lessonContent.intro}" class="form-control" type="text" maxlength="50" placeholder="最多50个字">
								</div>
							</div>
							
							<div class="form-group">
								<input id="content" name="content" type="hidden"
									th:value="${lessonContent.content}"> <label
									class="col-sm-3 control-label">文章内容：</label>
								<div class="col-sm-8">
									<div class="ibox-content no-padding">
										<div id="content_sn" class="summernote"></div>
									</div>
								</div>
							</div>
														<!-- <div class="form-group">	
								<label class="col-sm-3 control-label">内容：</label>
								<div class="col-sm-8">
									<input id="content" name="content" th:value="${lessonContent.content}" class="form-control" type="text">
								</div>
							</div> -->
							
							<div class="form-group">
								<label class="col-sm-3 control-label">封面图：</label>
								<div class="col-sm-8">
									<div id="file_upload">
									</div>
									<div id="logo" style="padding: 5px;">
										<img th:src="${lessonContent.img}" style='height: 60px;width: 60px'>
										<i class="fa fa-close" onclick="$('#img').val('');$('#logo').html('');"></i>

									</div>
									<input type="hidden" id="img" name="img" th:value="${lessonContent.img}" >
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">详情图：</label>
								<div class="col-sm-8">
									<div id="file_upload_imgurl">
									</div>
									<div id="logo_imgurl" style="padding: 5px;">
										<img th:src="${lessonContent.imgurl}" style='height: 60px;width: 60px'>
										<i class="fa fa-close" onclick="$('#imgurl').val('');$('#logo_imgurl').html('');"></i>

									</div>
									<input type="hidden" id="imgurl" name="imgurl" th:value="${lessonContent.imgurl}" >
								</div>
							</div>
														<!-- <div class="form-group">	
								<label class="col-sm-3 control-label">封面图片：</label>
								<div class="col-sm-8">
									<input id="img" name="img" th:value="${lessonContent.img}" class="form-control" type="text">
								</div>
							</div> -->
														<div class="form-group">	
								<label class="col-sm-3 control-label">观看人数：</label>
								<div class="col-sm-8">
									<input id="number" name="number" th:value="${lessonContent.number}" class="form-control" type="number">
								</div>
							</div>
														<!-- <div class="form-group">	
								<label class="col-sm-3 control-label">0默认1推荐：</label>
								<div class="col-sm-8">
									<input id="recommend" name="recommend" th:value="${lessonContent.recommend}" class="form-control" type="text">
								</div>
							</div> -->
														<div class="form-group">	
								<label class="col-sm-3 control-label">排序字段：</label>
								<div class="col-sm-8">
									<input id="location" name="location" th:value="${lessonContent.location}" class="form-control" type="number">
								</div>
							</div>
														<!-- <div class="form-group">	
								<label class="col-sm-3 control-label">创建时间：</label>
								<div class="col-sm-8">
									<input id="caAt" name="caAt" th:value="${lessonContent.caAt}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">修改时间：</label>
								<div class="col-sm-8">
									<input id="upAt" name="upAt" th:value="${lessonContent.upAt}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">0默认1删除：</label>
								<div class="col-sm-8">
									<input id="delFlag" name="delFlag" th:value="${lessonContent.delFlag}" class="form-control" type="text">
								</div>
							</div> -->
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script src="/js/layui.js"></script>
	<script type="text/javascript" src="/js/appjs/wx/lessonContent/edit.js">
	</script>
</body>
</html>
